@charset "UTF-8";
body {
  background-color: #eee;
}

.carousel {
  position: absolute;
  inset: 0;
  width: 50%;
  max-width: 900px;
  min-width: 550px;
  margin: auto;
}

.carousel {
  display: block;
  font-size: 0;
  border-radius: 8px;
  padding: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  background: white;
  transform: translateZ(0);
  height: 200px;
  --webkit-overflow-scrolling: touch;
}
.carousel[data-at*=left] > .wrap::before {
  opacity: 1;
  text-indent: -50px;
}
.carousel[data-at*=right] > .wrap::after {
  opacity: 1;
  text-indent: -50px;
}
.carousel::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: 4;
  bottom: -4px;
  left: 0;
  background-color: #d82b6a;
  height: 4px;
  opacity: 0;
  width: var(--scrollWidth, 0);
  left: var(--scrollLeft, 0);
  transition: opacity 0.2s, bottom 0.2s;
}
.carousel:hover::after {
  opacity: 1;
  bottom: -10px;
}
.carousel .wrap {
  overflow: hidden;
  border-radius: 4px;
}
.carousel .wrap::before, .carousel .wrap::after {
  content: "‹";
  opacity: 0;
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: 2;
  width: 50px;
  font-size: 80px;
  text-indent: -30px;
  line-height: 200px;
  font-family: monospace;
  color: #555;
  font-weight: bold;
  border-radius: 8px;
  pointer-events: none;
  transition: all 0.2s ease-out;
  background: linear-gradient(to right, white 20%, transparent);
}
.carousel .wrap::after {
  transform: rotate(180deg);
  left: auto;
  right: 0;
}
.carousel .wrap ul {
  list-style: none;
  white-space: nowrap;
  height: 200px;
}
.carousel .wrap ul li {
  display: inline-block;
  vertical-align: middle;
  height: 100%;
  margin: 0 0 0 5px;
  position: relative;
  overflow: hidden;
  transition: all 0.2s ease-out;
}
.carousel .wrap ul li:first-child {
  margin: 0;
}
.carousel .wrap ul li img {
  display: block;
  height: 100%;
  margin: auto;
  position: relative;
  z-index: 1;
  transition: all 1s;
}